package com.zx.dsptuneup_TriMic.Util;

/**
 * The interface Constants.
 */
public interface Constants {
    public static final String HOST = "192.168.4.1";
    public static final int TCP_PORT = 8266;


    /**
     * The interface Protocol enum.
     * 协议头(.cvi)
     * 协议尾(.end)
     */
    interface protocolEnum {
        String head          = "2E637669";
        String tail          = "2E656E64";

        String returnTail    = "2e646e0d"; // 应答数据的尾巴
    }

    /**
     * 操作类型
     * 0x01 	APP -> Device请求参数
     * 0x02	Device ->APP 回复请求
     * 0x03	APP -> Device设置参数
     * 0x04	Device -> APP 回复设置
     */
    interface operation_typeEnum {
        String get_device             = "01";
        String return_device_get      = "02";
        String set_device             = "03";
        String return_device_set      = "04";
    }

    /**
     * The interface Element type eum.
     * 0x01	输入通道
     * 0x02	输出通道
     * 0x03	音频矩阵路由
     * 0x04	高低音调节
     * 0x05	互斥命令
     */
    interface element_typeEnum {
        String INPUT  = "0";           // 输入通道 --
        String OUTPUT = "1";           // 输出通道 --
        String XMOSE  = "03";           // 混响控制 --
        String HIBS   = "04";           // 高低音调节 --
        String MUTEXmose  = "05";       // 麦克风互斥命令 --
    }

    /**
     * The interface channelEnu.
     */
//通道---
    interface channelEnum {
        int line1 = 0;
        int line2 = 1;
        int line3 = 2;
        int line4 = 3;
        int line5 = 4;
        int line6 = 5;
        int line7 = 6;
        int line8 = 7;
        int line9 = 8;
        int line10 = 9;
        int line11 = 10;
        int line12 = 11;
        int line13 = 12;
        int line14 = 13;
    }


    /**
     * The interface Input type num.
     * 调节模式、类型
     * input_eq        输入-EQ
     * input_mute      输入-静音
     * input_volume    输入-音量
     * input_switch    输入-高低切
     */
    interface TypeEnum {
        String EQ     = "01";
        String MUTE   = "02";
        String VOLUME = "03";
        String SWITCH = "04";
    }


    /**
     * 高低切
     */
    interface  highLowCutEnum {
        String high         = "00"; // 高切
        String low          = "01"; // 低切
        String highAndlow   = "02"; // 高低切
        String none         = "03"; // none
    }


    /**
     * The interface Mute x num.
     * 麦克风互斥
     * 0x00
     * 0x01
     */
    interface muteXEnum {
        int muteX_on     = 1;
        int muteX_off    = 0;
    }




    interface SetOkEnum {
        String MUTE = "[MUTE] SET OK\r"; // 静音设置成功
        String GAIN = "[GAIN] SET OK\r"; // 增益设置成功
        String EQ   = "[EQ] SET OK\r"; // EQ设置成功
        String TRAP = "[TRAP] SET OK\r"; // 陷波设置成功
        String WIFI = "[WIFI] SET OK\r"; // WIFI信息设置成功,然后设备会重启
        String HIBS = "[HIBS] SET OK\r"; // 高低音设置成功
        String ECHO = "[ECHO] SET OK\r"; // 混响设置成功
        String BLUE = "[BLUE] SET OK\r"; // 蓝牙设置成功
        String HAND = "[HAND] SET OK\r"; // 手麦设置成功

        String RESTORE = "[RESTORE] SET OK\r"; // 恢复配置设置成功
    }

}
